<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
    <title>用户管理</title>
    <script>
    	var APP = '__CONTROLLER__';
    </script>
    <js file="__STATIC__/js/jq.js" />
	<css file="__STATIC__/hdjs/hdjs.css" />
	<js	file="__STATIC__/js/jq.js" />
	<js file="__STATIC__/hdjs/hdjs.js" />
	<js file="__CONTROLLER_VIEW__/js/ajax_action.js" />
</head>
<body>
<div class="wrap">
    <table class="hd-table hd-table-form hd-form">
        <thead>
   			<tr>
				<td width="40">用户id</td>
				<td width="50">用户名</td>
				<td width="30">是否锁定</td>
				<td>操作</td>
			</tr>
        </thead>
        <tbody>
        	<foreach from="$users" key="$key" value="$val">
			<tr>
				<td width="40">{$val.uid}</td>
				<td>{$val.username}</td>
				<td width="30"><if value="$val.is_lock eq 0">正常<else/>锁定</if></td>
				<td width="120" data-uid="{$val.uid}">
					<a herf="" class="hd-btn hd-btn-primary hd-btn-xm pwd" data-uid="{$val.uid}" style="margin:0">修改密码</a>
					<if value="$val.is_lock eq 0"><a href="javascript:;" class="hd-btn hd-btn-success hd-btn-xm lock" data-lock="1" data-uid="{$val.uid}" style="margin:0">锁定</a><else/><a href="javascript:;" class="hd-btn hd-btn-success hd-btn-xm lock" data-lock="0" data-uid="{$val.uid}" style="margin:0">解锁</a></if>
					<a herf="javascript:;" data-uid="{$val.uid}" class="hd-btn hd-btn-danger hd-btn-xm deluser" style="margin:0">删除</a>
				</td>
			</tr>
			</foreach>
        </tbody>
    </table>
    <div class="hd-page">
        {$page}
    </div>
</div>

</body>
</html>